package com.schooldate.model.service.impl;

import com.schooldate.base.BaseSupportImpl;
import com.schooldate.model.entity.ADClass;
import com.schooldate.model.service.ADClassService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by etund on 2015/3/28 0028.
 */
@Service
@Transactional
@SuppressWarnings("all")
public class ADClassServiceImpl extends BaseSupportImpl<ADClass> implements ADClassService {

    @Override
    public List<ADClass> getTheRecent() {
        return this.getSession().createCriteria(ADClass.class)
                .setMaxResults(3)
                .list();
    }
}
